package com.shangcheng.goods.feign;

import com.github.pagehelper.PageInfo;
import com.shangcheng.goods.pojo.Brand;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "goods")
@RequestMapping("/brand")
public interface BrandFeign {
    @RequestMapping("/findAll")
    public Result findAll();

    @RequestMapping
    public Result<Brand> findById(@RequestParam(name = "id") Integer id);

    @RequestMapping(value = "/findPage")
    public Result<PageInfo> findPageBrand(@RequestParam(name = "page") int page, @RequestParam(name = "size") int size);
}
